Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support toolchain syntax added in go 1.21 #1304

Merged
merged 3 commits into from
Oct 18, 2023
Merged

Support toolchain syntax added in go 1.21 #1304

merged 3 commits into from
Oct 18, 2023

Conversation

zlav
Copy link
Member

@zlav zlav commented Oct 18, 2023

Overview

https://go.dev/doc/toolchain

Go added a new toolchain syntax field that broke our parser for go.mod files.

Acceptance criteria

  • Go projects with a toolchain field now work.

Testing plan

I created a test project (available in the ticket) with the toolchain field that breaks when doing normal fossa analysis.

Risks

The only risk I can think of is that the toolchain data that we are otherwise discarding is valuable

References

Checklist

  • I added tests for this PR's change (or explained in the PR description why tests don't make sense).
  • If this PR introduced a user-visible change, I added documentation into docs/.
  • If this change is externally visible, I updated Changelog.md. If this PR did not mark a release, I added my changes into an # Unreleased section at the top.
  • If I made changes to .fossa.yml or fossa-deps.{json.yml}, I updated docs/references/files/*.schema.json. You may also need to update these if you have added/removed new dependency type (e.g. pip) or analysis target type (e.g. poetry).
  • If I made changes to a subcommand's options, I updated docs/references/subcommands/<subcommand>.md.

@zlav zlav requested a review from a team as a code owner October 18, 2023 00:40
@zlav zlav requested a review from jssblck October 18, 2023 00:40
@zlav zlav force-pushed the gomod-toolchains branch from cc3c0d9 to df2476f Compare October 18, 2023 00:58
@zlav zlav requested review from meghfossa and removed request for jssblck October 18, 2023 00:58
Copy link
Contributor

@meghfossa meghfossa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

Don't forget to include changelog prior to merge.

golang: Updates go.mod parser to be compatible with golang v1.21. (#1304)

@zlav zlav enabled auto-merge (squash) October 18, 2023 18:05
@zlav zlav disabled auto-merge October 18, 2023 18:49
@zlav zlav merged commit a11e107 into master Oct 18, 2023
17 checks passed
@zlav zlav deleted the gomod-toolchains branch October 18, 2023 18:49
@zlav
Copy link
Member Author

zlav commented Oct 18, 2023

Just realized I forgot to increment the changelog version when I added the changelog note. I will make sure we do this on the next PR that gets merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants